package cn.yangliu.operation.config;

import cn.yangliu.operation.constant.OperationConstant;
import cn.yangliu.operation.entity.Operation;

/**
 * 作者 杨柳
 * 创建时间 2017-08-28 21:07
 */

public class OperationConfig {

    /**
     * 指定操作记录实体对象
     */
    private Class<? extends Operation> entityClassName;


    public Class<? extends Operation> getEntityClassName() {
        return entityClassName;
    }

    public void setEntityClassName(Class<? extends Operation> entityClassName) {
        this.entityClassName = entityClassName;
        if (entityClassName != null) {
            OperationConstant.ENTITY_CLASS = entityClassName;
        }
    }

    public void setApplicationName(String applicationName) {
        OperationConstant.APPLICATION_NAME = applicationName;
    }

    public void setGlobalRecordParams(boolean globalRecordParams) {
        OperationConstant.GLOBAL_RECORD_PARAMS = globalRecordParams;
    }

}
